<!-- 1 -->
<?php
if(is_array($dataList)) {
	foreach($dataList as $val) {
?>
<div class="y-ct-wrapper">
	<div class="y-ct-avatar y-pullLeft">
		<img alt="头像" src="<?php echo y_gravatar($val['email']);?>" height="38" width="38" />
	</div>
	<div class="y-ct-content">
		<div class="y-ct-userinfo">
			<span class="y-pullRight"><a href="javascript:;" rel="nofollow" onclick="_reply('<?php echo $val['id'];?>', '<?php echo $val['nickname'];?>')">回复</a></span>
			<span>
				<a href="/go.php?url=<?php echo $val['website'];?>" rel="nofollow" target="_blank"><strong><?php echo $val['nickname'];?></strong></a>&nbsp;<?php echo date('Y-m-d H:i', $val['posttime']);?>
			</span>
		</div>
		<div class="y-ct-text">
<?php echo y_processFace($val['content']);?>
		</div>
	</div><div class="y-clearL"></div>
	
	<!-- 2 -->
	<?php
	if(is_array($val['sub'])) {
		foreach($val['sub'] as $v) {
	?>
	<div class="y-ct-sub y-ct-oddBg">
		<div class="y-ct-avatar y-ct-avatarsmall y-pullLeft">
			<img alt="头像" src="<?php echo y_gravatar($v['email']);?>" class="avatar" height="30" width="30"/>
		</div>
		<div class="y-ct-content">
			<div class="y-ct-userinfo">
				<!--<span class="y-pullRight"><a href="javascript:;" rel="nofollow">回复</a></span>-->
				<span><strong><em><?php echo $v['nickname'];?></em></strong>&nbsp;<?php echo date('Y-m-d H:i', $v['posttime']);?></span>
			</div>
			<div class="y-ct-text">
<?php echo y_processFace($v['content']);?>
			</div>
		</div><div class="y-clearL"></div>
	</div>
	<?php
		}
	}
	?>
</div>
<div class="y-clear"></div>
<?php 
	}
} 
?>
<div class="page">
<?php echo $pageString; ?>
</div>
<script>
function _reply(val, nickname) {
	document.getElementById('pid').value = val;
	document.getElementById('replyInfo').innerHTML = '正在回复 ' + nickname + ' <a href="javascript:;" onclick="_unreply()">取消</a>';
}
function _unreply() {
	document.getElementById('pid').value = 0;
	document.getElementById('replyInfo').innerHTML = '';
}
</script>